package com.iwhalecloud.citybrain.flow.platform.manager.application.service.impl.task;

import com.iwhalecloud.citybrain.flow.platform.manager.application.service.TaskCreatedPostProcessor;
import com.iwhalecloud.citybrain.flow.platform.manager.application.utils.FlowUtils;
import org.flowable.task.service.impl.persistence.entity.TaskEntity;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

/**
 * @author lilh
 * @date 2021/1/6 下午5:18
 */
@Service
@Order(10)
public class SetParticipantFromSdkVariablePostProcessor implements TaskCreatedPostProcessor {

    @Override
    public void process(TaskEntity taskEntity) {
        FlowUtils.getInstance().setProcessInstanceParticipantsFromVariable(taskEntity);
    }
}
